<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title>湖南省自来水公司营销管理信息系统</title> 
	
	<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/grid.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/layout.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/custom.css" type="text/css" media="screen" title="no title">
	
</head> 
 
<body> 

<div id="wrapper">	
	
	<#include "../common/header.ftl"/>

	<div id="content" class="xgrid">
		
 		
		<div class="x12">

			
			<h2>
				初步审核 - <a href="/beOrder/be_orderlnfo?orderno=${beOrder.orderno}&OrderType=${beOrder.ordertype}" target="orderInfo">${beOrder.orderno}</a>
                <input id="orderno" type="hidden" value="${beOrder.orderno}">
				<a style="float:right" href="javascript:history.back(-1);">返回</a>
			</h2>
			<div class="buttonrow">
				<button class="btn-icon btn-arrow-left btn-red" id="abreak"><span></span>撤回</button>
					<#--onclick="showDialog('确认撤回吗？');"><span></span>撤回</button>-->
				<button class="btn-icon btn-arrow-right btn-blue" id="ago" ><span></span>发送</button>
					<#--onclick="showDialog('确认发送吗？');"><span></span>发送</button>-->
			</div>
			
			<table width="100%">
			<thead>
				<tr>
					<th width="60"></th>
					<th> <input type="hidden" id="auditempid" value="${user.id}"></th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>用户名称</td>
					<td><input readonly="readonly" value="${beOrder.username}" /></td>
				</tr>
				<tr>
					<td style="vertical-align:top;">审核意见</td>
					<td>
						<textarea id="auditmessage" rows="10" cols="100" ></textarea>
					</td>
				</tr>
			</tbody>
			</table>

			
		</div> <!-- .x12 -->
		
	</div> <!-- #content -->
	
	<div id="footer">		
		<div class="content_pad">			
			<p>&copy; 2013-11 版权所有 <a href="#">湖南省自来水公司</a>.   技术支持 <a href="#">华瑞教育</a>.</p>
		</div> <!-- .content_pad -->
	</div> <!-- #footer -->
	
</div> <!-- #wrapper -->

<script src="../../../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../../../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../../../js/misc/excanvas.min.js"></script>
<script src="../../../js/jquery/facebox.js"></script>
<script src="../../../js/jquery/jquery.visualize.js"></script>
<script src="../../../js/jquery/jquery.dataTables.min.js"></script>
<script src="../../../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../../../js/jquery/jquery.uniform.min.js"></script>
<script src="../../../js/jquery/jquery.placeholder.min.js"></script>

<script src="../../../js/widgets.js"></script>
<script src="../../../js/dashboard.js"></script>

<script type="text/javascript">
	
$(document).ready ( function () 
{
	Dashboard.init ();		
});

</script>
<script>
    $(function () {
        //发送
        $("#ago").click(function () {
            var al=$("#auditmessage").val();
            if (al==""){
                alert("审核意见不能为空")
			}else{
                var fal = confirm("确定发送吗");
                if (fal){
                    $.ajax({
                        url:"/beOrder/go",    //请求的url地址
                        dataType:"json",   //返回格式为json
                        async:true,//请求是否异步，默认为异步，这也是ajax重要特性
                        data:{
                            "auditempid":$("#auditempid").val(),
                            "auditmessage":$("#auditmessage").val(),
                            "orderno":$("#orderno").val()
                        },
                        type:"POST",   //请求方式
                        success:function(req){
                            if (req!=null){
                                $("#auditmessage").val("")
                                alert("发送成功")
                                window.location.href="http://localhost:8090//beOrder/be__audit";
                            }
                        },

                    });
                } else {
                    return fales;
                }
			}

        })
        $("#abreak").click(function () {
            var al=$("#auditmessage").val();
            if (al==""){
                alert("审核意见不能为空")
            }else{
                var fal = confirm("确定撤回吗");
                if (fal){
                    $.ajax({
                        url:"/beOrder/abreak",    //请求的url地址
                        dataType:"json",   //返回格式为json
                        async:true,//请求是否异步，默认为异步，这也是ajax重要特性
                        data:{
                            "auditempid":$("#auditempid").val(),
                            "auditmessage":$("#auditmessage").val(),
                            "orderno":$("#orderno").val()
                        },
                        type:"POST",   //请求方式
                        success:function(req){
                            if (req!=null){
                                $("#auditmessage").val("")
                                alert("撤回成功")
                                window.location.href="http://localhost:8090//beOrder/be__audit";
                            }
                        },

                    });
                } else {
                    return fales;
                }
            }

        })
    })


</script>


</body> 
 
</html>